<!DOCTYPE html>
<html lang="en" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/css/custom.form.css">
</head>
<body>
<div class="panel panel-default operation" hidden>
    <div class="panel-heading title"></div>
    <div class="layui-card-body">
        <form class="layui-form " action="" lay-filter="info" style="width: 700px;margin-top: 10px">

            <div class="layui-form-item">
                <label class="layui-form-label">用户id</label>
                <div class="layui-input-block">
                    <input type="userId" name="userId" placeholder="请输入用户id" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">门店名称-全称</label>
                <div class="layui-input-block">
                    <input type="storeName" name="storeName" placeholder="请输入门店名称-全称" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">门店名称-简称</label>
                <div class="layui-input-block">
                    <input type="storeNames" name="storeNames" placeholder="请输入门店名称-简称" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">门店详细描述</label>
                <div class="layui-input-block">
                    <input type="storeMsgs" name="storeMsgs" placeholder="请输入门店详细描述" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">门店简单描述</label>
                <div class="layui-input-block">
                    <input type="storeMsg" name="storeMsg" placeholder="请输入门店简单描述" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">地址</label>
                <div class="layui-input-block">
                    <input type="address" name="address" placeholder="请输入地址" autocomplete="off" class="layui-input">
                </div>
            </div>
            <!--<div class="layui-form-item">-->
            <!--<label class="layui-form-label">经度</label>-->
            <!--<div class="layui-input-block">-->
            <!--<input type="lng" name="lng" placeholder="请输入经度" autocomplete="off" class="layui-input">-->
            <!--</div>-->
            <!--</div>-->
            <!--<div class="layui-form-item">-->
            <!--<label class="layui-form-label">纬度</label>-->
            <!--<div class="layui-input-block">-->
            <!--<input type="mlat" name="mlat" placeholder="请输入纬度" autocomplete="off" class="layui-input">-->
            <!--</div>-->
            <!--</div>-->
            <div class="layui-form-item">
                <label class="layui-form-label">门店状态（1.正常2.停用 3.审核失败 4.审核中）</label>
                <div class="layui-input-block">
                    <input type="status" name="status" placeholder="请输入门店状态（1.正常2.停用 3.审核失败 4.审核中）" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <!--<div class="layui-form-item">-->
            <!--<label class="layui-form-label">审核失败描述</label>-->
            <!--<div class="layui-input-block">-->
            <!--<input type="errorMsg" name="errorMsg" placeholder="请输入审核失败描述" autocomplete="off"-->
            <!--class="layui-input">-->
            <!--</div>-->
            <!--</div>-->
            <!--<div class="layui-form-item">-->
            <!--<label class="layui-form-label">更新人</label>-->
            <!--<div class="layui-input-block">-->
            <!--<input type="updateId" name="updateId" placeholder="请输入更新人" autocomplete="off" class="layui-input">-->
            <!--</div>-->
            <!--</div>-->
            <!--<div class="layui-form-item">-->
            <!--<label class="layui-form-label">创建时间</label>-->
            <!--<div class="layui-input-block">-->
            <!--<input type="createTime" name="createTime" placeholder="请输入创建时间" autocomplete="off"-->
            <!--class="layui-input">-->
            <!--</div>-->
            <!--</div>-->
            <div class="layui-form-item">
                <label class="layui-form-label">更新时间</label>
                <div class="layui-input-block">
                    <input type="updateTime" name="updateTime" placeholder="请输入跟新时间" autocomplete="off"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn" lay-submit="" lay-filter="submit">保存</button>
                    <button class="layui-btn layui-btn-primary" id="btn_cancel">返回</button>
                </div>
            </div>
        </form>
    </div>
</div>


<div class="panel panel-default update" hidden >
    <div class="panel-heading title"></div>
    <div class="layui-card-body">
        <form class="layui-form" action="" lay-filter="info" style="">
            <input name="id" hidden/>

            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block">
                    <input type="userName" name="userName" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">联系方式</label>
                <div class="layui-input-block">
                    <input type="phone" name="phone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">联系方式</label>
                <div class="layui-input-block">
                    <input type="phone" name="phone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn" lay-submit="" lay-filter="submit" shiro:hasPermission="sysStore:update">更新</button>
                    <button class="layui-btn layui-btn-primary" id="btn_cancel">返回</button>
                </div>
            </div>

        </form>
    </div>
</div>

<div class="table_div"  >
    <div id="searchParam" shiro:hasPermission="sysStore:list">
        <div class="layui-form-item">
            <div class="layui-input-inline">
                <input type="text" id="key" class="layui-input" autocomplete="off" placeholder="请输入">
            </div>

            <div class="layui-input-inline ">
                <button class="layui-btn" onclick="search()" id="search">查询</button>
                <button class="layui-btn" id="export">导出全部</button>
            </div>
        </div>

    </div>
    <table class="layui-table" id="showTable" lay-filter="showTable"></table>
</div>

<script type="text/html" id="toolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" lay-event="add" shiro:hasPermission="sysStore:add">添加</button>
        <button class="layui-btn layui-btn-sm" lay-event="batchPass" shiro:hasPermission="sysStore:checkUpdate">批量通过</button>
        <button class="layui-btn layui-btn-sm" lay-event="batchNoPass" shiro:hasPermission="sysStore:checkUpdate">批量不通过</button>
    </div>
</script>
<script type="text/html" id="tool">

    <!-- 门店状态（1.正常2.停用 3.审核失败 4.审核中）-->
    {{# if(d.status == 4) { }}
    <a class="layui-btn layui-btn-xs" lay-event="pass"  shiro:hasPermission="sysStore:checkUpdate">通过</a>
    <a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="noPass"  shiro:hasPermission="sysStore:checkUpdate">不通过</a>
    {{# } }}
    <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="details" >查看</a>
    <!--<a class="layui-btn layui-btn-xs" lay-event="pass" >通过</a>-->
    <!--<a class="layui-btn layui-btn-xs" lay-event="noPass" >不通过</a>-->
    <!--<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" shiro:hasPermission="sysStore:delete">删除</a>-->
</script>

</body>
<script src="/layui/layui.all.js"></script>
<script src="/js/core.util.js"></script>
<script src="/js/store/checkList.js"></script>